<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class TestController extends Controller
{
    public function index()
    {
        $img = 'https:\/\/rccdn1.azureedge.net\/images\/v2\/rcdrive\/ownerships\/883bb60d-f209-4a96-99aa-973ee7cc25f1\/70a5fd13-0954-4391-8088-fee5a61da3a1.webp?autorotate=true&width=1280';
        $file = file_get_contents(stripslashes($img));

        file_put_contents('abc.jpg', $file);

        $data = getimagesize('abc.jpg', $info);
        dd($data, $info);
    }
}
